<?php

Yii::import('zii.widgets.CPortlet');

class RelatedLinks extends CPortlet
{
	
    public $campusLinks;
    public $externalLinks;
	public function init()
	{
        /**
         * show the relation links
         * @author : nonglei
         * @date   : 16/03/2014
         */
        $this->campusLinks = Relatedlink::model()->findAll("type = 1 and status = 1;");
        $this->externalLinks = Relatedlink::model()->findAll("type = 0 and status = 1;");
		//$cs = Yii::app()->getClientScript();
        parent::init();
	}
	protected function renderContent()
	{
		$this->render('relatedlinks');
	}
}

?>
